package conclusion;

import java.lang.reflect.Proxy;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ManagerImpl manager = new ManagerImpl();
		BusinessHandler handler = new BusinessHandler(manager);
		Manager managerProxy = (Manager)Proxy.newProxyInstance(manager.getClass().getClassLoader(), manager.getClass().getInterfaces(), handler);
		managerProxy.modify();

	}

}
